home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / demo / xwindemo.zip / INSTALL.DAT < prev    next >
Text File  |  1995-04-18  |  3KB  |  134 lines

  1.   /*
  2. ******************* Options *********************************************
  3. @Option 8 = "Don't reinstall the X server"
  4. @Option 7 = "Reinstall the X server"
  5. @Option 18 = "Don't reinstall the X configuration file"
  6. @Option 17 = "Reinstall the X configuration file"
  7. @Option 51 = "No, don't install the fonts."
  8. @Option 50 = "Yes, reinstall the fonts."
  9. *************************************************************************
  10.    */
  11. @DefineProject
  12.     @Name     = "X-WIN"
  13.     @Version  = "2.8.8"
  14.     @Subdir   = "\\XWIN"
  15.     @OutDrive = C
  16.     @AssumeHardDisk=1
  17. @EndProject
  18.  
  19.  
  20. @DefineVars
  21.      @Drive @WDrive = @WindowsDrive
  22.      @Dir   @WDir   = @WindowsDir
  23. @EndVars
  24.  
  25.  
  26.  
  27. @GetOutDrive
  28.     @DLGCTRLSIZE(0,4,4,10,40)
  29.     @Suppress A
  30.     @Suppress B
  31.     @Cls
  32.     On which disk drive do you wish to install @Name?
  33. @EndOutDrive
  34.  
  35.  
  36. @GetSubdir
  37.     @DLGCTRLSIZE(0,4,4,5,40)
  38.     @Cls
  39.     Enter directory on drive @OutDrive in which to install @Name.
  40.     Start your entry with a backslash (\). 
  41. @EndSubdir
  42.  
  43.  
  44.  
  45. @If (@Exists ("@OutDrive:@SubDir\\xwin.exe"))
  46.     @GetOption
  47.     @DLGCTRLSIZE(0,4,4,10,40)
  48.     @Cls
  49.     The X server and support programs are already installed.  
  50.  
  51.     @Option 8 = "Don't reinstall the X server"
  52.     @Option 7 = "Reinstall the X server"
  53.  
  54.     @EndOption
  55. @EndIf
  56.  
  57.  
  58. @If (@Exists ("@WDrive:@WDir\\mxwin.ini"))
  59.     @GetOption
  60.     @DLGCTRLSIZE(0,6,4,10,60)
  61.     @Cls
  62.     An X server configuration file has previously been installed.
  63.     If you choose to replace it, you will lose any configured
  64.     sessions, xhosts info, and start-up data.
  65.  
  66.  
  67.     @Option 18 = "Don't reinstall the X configuration file"
  68.     @Option 17 = "Reinstall the X configuration file"
  69.  
  70.     @EndOption
  71. @EndIf
  72.  
  73.  
  74. @If (@Exists ("@OutDrive:@SubDir\\LIB\\FONTS\\MISC\\fonts.dir"))
  75.     @GetOption
  76.     @DLGCTRLSIZE(0,4,4,10,40)
  77.     @Cls
  78.     X fonts are already installed.
  79.     
  80.     @Option 51 = "No, don't install the fonts."
  81.     @Option 50 = "Yes, reinstall the fonts."
  82.  
  83.     @EndOption
  84. @Endif
  85.  
  86.  
  87.  
  88. @DefineDisk
  89.     @Label  = "Disk 1"
  90.  
  91.     @If (8 [! @Option)
  92.         @BeginLib LIB.RED
  93.             @File *.* @Out LIB\*.*
  94.         @EndLib
  95.  
  96.         @BeginLib XWIN.RED
  97.             @File *.* @Out *.*
  98.         @EndLib
  99.     @Endif
  100.  
  101.     @If (18 [! @Option)
  102.         @BeginLib XWIN.RED
  103.             @File MXWIN.INI @Out @WDrive:@WDir\*.*
  104.         @EndLib
  105.     @Endif
  106.  
  107.     @If (51 [! @Option)
  108.         @BeginLib 75DPI.RED
  109.             @File *.* @Out LIB\FONTS\75DPI\*.*
  110.         @EndLib
  111.  
  112.         @BeginLib MISC.RED
  113.             @File *.* @Out LIB\FONTS\MISC\*.*
  114.         @EndLib
  115.     @Endif
  116. @EndDisk
  117.  
  118.  
  119. @Finish
  120.     @If (18 [! @Option)
  121.  
  122.         /* Modify MXWIN.INI - Directory line */
  123.         @SetINI ("MicroX", "directory", "@OutDrive:\\@SubDir\\LIB", "MXWIN.INI")
  124.  
  125.         /* Modify MXWIN.INI - Fontpath line */
  126.         @SetINI ("font", "fontpath", "@OutDrive:\\@SubDir\\LIB\\FONTS\\MISC,@OutDrive:\\@SubDir\\LIB\\FONTS\\75DPI", "MXWIN.INI") 
  127.  
  128.         /* Set-up the group and add an item to that group */
  129.         @ProgramManager("[CreateGroup (XX-Win)][AddItem(@OutDrive:\\@Subdir\\xwin.exe,X-Win)]")
  130.  
  131.     @Endif
  132. @EndFinish
  133.  
  134.